/**
 * 
 */
$(function(){
/*	toggleMenu();
	adaptive();
	renderICkeck(); */
	var form1=$("#form1").serializeObject();
	form1.content=$("#search").val();
	pagination({total:parseInt($("#total").val()),size:parseInt($("#size").val()),currentpage:parseInt($("#page").val()),visibPage:3,pagePath:'userHelp.html'},form1);
		//搜索
		$('#user-help-search').click(function(){
			$("#frameReft").load("userHelp.html",{'content': $("#search").val()});
		});
		//用户帮助高级查询
		$('#user-help-senior-search').click(function(e){
	        e.preventDefault();
	        var diag = new $.Zebra_Dialog({
	            source: {'iframe': {
	                'src':'/ietm/user-help-search',
	                'height':500,
	                'id':'userHelpSearch'
	            }},
	            width:800,
	            title:'高级搜索',
	            buttons : [{caption: '确定',callback:function(){
					var param2=$("#userHelpSearch").contents().find("#userHelpSearch").serializeObject();
					$("#frameReft").load("userHelp.html",param2);
				} 
				}]
	        });
		});
		
		$('.data-pub').children('li').each(function(){
			//$(this).children('.data-a').children();
		});
	});
function dw(p){
	top.dmIds=$(p).attr('dmId');
	var url=window.location.href; 
	if(url.indexOf('ietm')>-1){
		changeMain('ietm-home');
		window.parent.clickDw($(p).attr('dmId'));
	}else{
		window.location.href="ietm/index?ietm="+$(p).attr('dmId');
	}
	

	
}